package com.own.business.login.common.property;

import com.own.constant.ConstantValue;
import lombok.Data;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashSet;

/**
 * LoginProperty
 *
 * @author chenxueli
 * @date 2023-08-07 22:06:25
 */
@Data
@SpringBootConfiguration
@ConfigurationProperties(prefix = LoginProperty.PREFIX)
public class LoginProperty {

    public static final String PREFIX = ConstantValue.CONFIG_VALUE_CONTENT + "login";

    /**
     * 忽略的用户信息key
     */
    private HashSet<String> ignoreUserDetailKeyArray = new HashSet<>();

    /**
     * 登录时创建刷新token令牌
     */
    private Boolean createRefreshTokenInLogin = true;

}
